<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>haha haha</title>
    <link
      rel="stylesheet"
      href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css"
      integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l"
      crossorigin="anonymous"
    />
  </head>

  <body>
    <div class="container">
      <div class="row">
        <div class="col-2"></div>
        <div class="col-8">
          <h1>todo</h1>
          <ol>
            <% todo.forEach((v, i)=> {%>
            <li><%= v.title %> <a href="/delete?index=<%= i %>">删除</a></li>
            <% }) %>
          </ol>
          <form method="POST" action="/add">
            <input name="title" />
            <input type="submit" value="add todo" />
          </form>
        </div>
        <div class="col-2"></div>
      </div>
    </div>

    <script></script>
  </body>
</html>
